home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / StackToolsƒ / Animating / FieldEffects / stack_-1.xml < prev   
Encoding:
Extensible Markup Language  |  1992-08-18  |  4.2 KB  |  21 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>2</cardCount>
  7.     <cardID>2841</cardID>
  8.     <listID>3518</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on NewField
  17. set lockscreen to "true"
  18. if the optionKey = "down"
  19. then
  20. set the Style of the target to "scrolling"
  21. else
  22. set the Style of the target to "rectangle"
  23. end if
  24. set lockscreen to "false"
  25. if the commandKey = "up"
  26. then
  27. put the script of card field "rectSave" of card 1 into it
  28. set the script of the target to it
  29. end if
  30. choose browse tool
  31. end NewField
  32. on NewButton
  33. if the commandKey = "up"
  34. then
  35. put the script of button "Funny" of card 1 into it
  36. set the script of the target to it
  37. end if
  38. end NewButton
  39. on rectchange
  40. global bigRect
  41. If the commandKey = down
  42. then
  43. set the lockText of the target to "true"
  44. put item 2 of the rect of the target into top
  45. put item 3 of the rect of the target into right
  46. put item 4 of the rect of the target into bottom
  47. put item 1 of the rect of the target into left
  48.  
  49. put item 1 of the loc of the target - left into midh
  50. put item 2 of the loc of the target - top into midv
  51.  
  52. if (item 2 of the clickLoc - 15) ‚â§ top
  53. then
  54. if item 1 of the clickLoc ‚â• (right - 40)
  55. then
  56. put card field "rectSave" of card 1 into it
  57. put the name of the target into ref
  58. if ref contains "card field" then put the id of this card before ref
  59. if the rect of the target ‚↠bigRect
  60. then
  61. put "no" into check
  62. repeat with x = 1 to the number of lines of it
  63. if line x of it contains ref
  64. then
  65. put ref&","&the rect of the target into¬¨
  66. line x of it
  67. put "yes" into check
  68. exit repeat
  69. end if
  70. end repeat
  71. if check = "no"
  72. then
  73. put return & ref&","&¬¨
  74. the rect of the target after it
  75. end if
  76. set the rect of the target to bigRect
  77. else
  78. repeat with x = 1 to the number of lines of it
  79. if line x of it contains ref
  80. then
  81. set the rect of the target to item 2 to 5¬¨
  82. of line x of it
  83. delete line x of it
  84. exit repeat
  85. end if
  86. end repeat
  87. end if
  88. put it into card field "rectSave" of card 1
  89. else
  90. repeat until the commandKey ‚↠"down"
  91. put item 2 of the mouseLoc into newtop
  92. put item 1 of the mouseLoc into newleft
  93. set the loc of the target to midh + newleft,midv + newtop
  94.  
  95. end repeat
  96. end if
  97. else
  98. if (item 2 of the clickLoc + 15) ‚â• bottom
  99. then
  100. if item 1 of the clickLoc ‚â• (right - 40)
  101. then
  102. repeat until the commandKey ‚↠"down"
  103. put item 1 of the mouseLoc into newright
  104. put item 2 of the mouseLoc into newbottom
  105. set the rect of the target to left,top,newright,newbottom
  106. end repeat
  107. else
  108. if item 1 of the clickloc ‚â§ left + 40
  109. then
  110. hide the target
  111. wait until the mouseClick
  112. show the target
  113. end if
  114. end if
  115. end if
  116. end if
  117. else
  118. if the optionKey = "down"
  119. then
  120. repeat until the optionKey = "up"
  121. choose field tool
  122. click at the mouseloc
  123. if the ShiftKey = "up" then DoMenu "Bring Closer"
  124. if the ShiftKey = "down" then DoMenu "Send Farther"
  125. choose browse tool
  126. end repeat
  127. end if
  128. end if
  129. end rectchange
  130. on buttonmove
  131. if the commandKey = "down"
  132. then
  133. repeat until the commandkey = "up"
  134. set the loc of the target to the mouseloc
  135. end repeat
  136. end if
  137. if the optionkey = "down"
  138. then
  139. choose button tool
  140. click at the loc of the target
  141. repeat until the optionKey ‚↠"down"
  142. if the ShiftKey = "down" then DoMenu "Send Farther"
  143. else DoMenu "Bring Closer"
  144. end repeat
  145. choose browse tool
  146. else
  147. if the ShiftKey = "down"
  148. then
  149. hide the target
  150. wait until the mouseClick
  151. show the target
  152. end if
  153. end if
  154. end buttonmove
  155.  
  156.  
  157. on closeField
  158. global bigRect
  159. if the rect of the target = bigRect
  160. then
  161. set lockScreen to true
  162. put card field "rectSave"of card 1 into it
  163. put the name of the target into ref
  164. if ref contains "card field" then put the id of this card before ref
  165.  
  166. repeat with x = 1 to the number of lines of it
  167. if line x of it contains ref
  168. then
  169. set the rect of the target to item 2 to 5 of line x of it
  170. exit repeat
  171. end if
  172. end repeat
  173. set lockScreen to false
  174. end if
  175. pass closeField
  176. end closeField
  177.  
  178. </script>
  179.     <background id="2803" file="background_2803.xml" name="" />
  180.     <card id="2841" file="card_2841.xml" marked="false" name="" owner="2803" />
  181.     <card id="2233" file="card_2233.xml" marked="false" name="" owner="2803" />
  182. </stack>
  183.